package com.application.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(type=IdType.ASSIGN_ID)  //设置主键使用   雪花来记录
    private String id;
    //  这个用来  记录  微信中用户的唯一标识   openid
    private String openid;
    private String username;
    @TableField(select = false)
    private String password;
    private String community;
    private String position;
    private String head;


    private String tel;
    private String academy;
    private Integer flag;
    private String school;

    @TableField(value = "user_version")
    @Version
    private Integer version;

    @TableLogic(value = "0",delval = "1")
    @TableField(value = "user_deleted")
    private Integer deleted;
    private Integer level;


}
